Python for ArcGIS Pro by William Parker & Silas Toms

Python for ArcGIS Pro by William Parker & Silas Toms

Author:William Parker & Silas Toms [Parker, William & Toms, Silas]
Language: eng
Format: epub
Tags: Python programming, ArcGIS Pro, scipy, pandas, python book, arcgis book, arcgis pro book, python arcgis book, python arcgis pro book, cartography book, jupyter, jupyter notebooks
Publisher: Packt Publishing
Published: 2022-01-24T00:00:00+00:00


Now you can take the selected parks and buffer them by 1,000 feet. The buffer tool is in the analysis toolbox so the call it you type arcpy.analysis.Buffer() You can see the buffer tool parameters the buffer tool takes by hovering in the parenthesis. It takes the following mandatory parameters in this order

in_features

out_features

buffer_distance_or_field

And the following optional parameters in this order

line_side

line_end_type

dissolve_option

dissolve_field

method

You want to have a buffer of 1,000 feet for the parks, dissolved to just the UNIT_NAME, AGENCY_NAME, and LABEL_NAME. To get this you will be typing in the in_features, out_featuers, buffer_distance, dissolve_option, and dissolve_field paramaters. The in_features, out_features, and buffer_distance are the first 3 parameters, but the dissolve_option and dissolve_field are the 6th and 7th parameters. To make sure they are in those positions you will type a pair of single or double quotes in the 4th and 5th parameters. This signifies to the function that those optional parameters are blank, just as if they weren’t entered; and allows you to enter parameters after them. Type in “CPAD_2020b_Units_Oakland”,”CPAD_2020b_Units_Oakland_1000ft”,”1000 FEET”, “”,””,”LIST”,[“UNIT_NAME”,”AGNCY_NAME”,”LABEL_NAME”] And press Enter



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.